package com.javafactroy.kunlong.api.openfeign.base;

import com.javafactroy.kunlong.api.dto.ApiJob;
import com.javafactroy.kunlong.api.dto.ApiTaskLog;
import com.javafactroy.kunlong.client.feign.dto.ApiResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 *
 */

//@FeignClient(url = "http://127.0.0.1:9701", value = IServiceName.SERVICE_NAME_DBAGENT,
//        contextId = "dbagentbase", path = "/dbagent")
public interface ApiDbAgentOpenFeignBase {
    @GetMapping("/demo")
    @ResponseBody
    ApiJob sendDemo();

    @PostMapping("/selectJob")
    @ResponseBody
    ApiResult<List<ApiJob>> selectJob(@RequestBody  ApiJob apiJob);

    @GetMapping("/selectTaskLog")
    @ResponseBody
    ApiResult<List<ApiTaskLog>> selectTaskLog();

}
